<?php
//require '3rdparty/mobile_device_detect.php';
require_once 'config.php';
if (UNDER_CONSTRUCTION) {
	echo 'Server vimua hiện quá tải! Bạn vui lòng quay lại sau';
	exit ();
}
require 'init.php';
// tạo nick
//Messenger::genGuestNick ();
if (user ()->is_admin () and request ( 'flush_cache' )) {
	CSystem::$cache->flush ();
}
CPage::load ();

//Profile
if (DEBUG and (request ( 'profile' ))) {
	require_once '3rdparty/pqp/classes/PhpQuickProfiler.php';
	require_once '3rdparty/pqp/CProfile.php';
}
CSystem::end ();